package cn.bx.pojo;



import java.io.Serializable;
import java.util.Date;

//@ApiModel("用户信息")


public class User implements Serializable {


	private long id;
	//@Column(name="role")
	private long role;

	private String userName;
	private String password;
	private String name;
	private String telephone;
	private String unit;

	private String landMark;
	private Date enterdate;
//	private Userrole userrole=new Userrole();

	private Userrole userrole=new Userrole();

	public User() {
	}

	public Userrole getUserrole() {
		return userrole;
	}

	public void setUserrole(Userrole userrole) {
		this.userrole = userrole;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getRole() {
		return role;
	}

	public void setRole(long role) {
		this.role = role;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getLandMark() {
		return landMark;
	}

	public void setLandMark(String landMark) {
		this.landMark = landMark;
	}

	public Date getEnterdate() {
		return enterdate;
	}

	public void setEnterdate(Date enterdate) {
		this.enterdate = enterdate;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", role=" + role +
				", userName='" + userName + '\'' +
				", password='" + password + '\'' +
				", name='" + name + '\'' +
				", telephone='" + telephone + '\'' +
				", unit='" + unit + '\'' +
				", landMark='" + landMark + '\'' +
				", enterdate=" + enterdate +
				", userrole=" + userrole +
				'}';
	}

//	@Override
//	public String toString() {
//		return "User{" +
//				"id=" + id +
//				", role=" + role +
//				", userName='" + userName + '\'' +
//				", password='" + password + '\'' +
//				", name='" + name + '\'' +
//				", telephone='" + telephone + '\'' +
//				", unit='" + unit + '\'' +
//				", landMark='" + landMark + '\'' +
//				", enterdate=" + enterdate +
//				'}';
//	}
}